<?php
/**
 * Created by PhpStorm.
 * User: geolo
 * Date: 2018/10/11
 * Time: 10:14
 */
namespace app\models;

use Yii;
class AgentGood extends \yii\db\ActiveRecord
{
    public static function tableName()
    {
        return '{{%agent_good}}';
    }
    public function rules()
    {
        return[
            [['store_id'],'required'],
            [['store_id'],'integer'],
            [['good'],'string'],
        ];
    }
    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'store_id' => 'Store ID',
            'good'=>'good',
            'model'=>'model',
        ];
    }
}